﻿using CPPEI.WebApi2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jiz.App.WebApi
{
    [PostAction("ad","click","1.0")]
    class ClickAdAction : BaseAction<ClickAdParams,
        ClickAdResult>
    {
        protected override ActionResult<ClickAdResult> OnExecute(ActionContext context, SysParams sysParams, ClickAdParams opParams)
        {
            if(new Jiz.App.Domain.Services.CreateService().CreateAdClickRecord(opParams.os, opParams.platform, opParams.app,
                opParams.version, opParams.mac))
            {

            }

            return new ActionResult<ClickAdResult>(new ClickAdResult());
        }
    }

    class ClickAdParams
    {
        public string os;
        public string platform;
        public string app;
        public string version;
        public string mac;
    }

    class ClickAdResult
    {

    }
}
